package com.homewoek;

import java.util.HashMap;
import java.util.HashSet;

/**
 * @Author:Ren2048
 * @Date:2021/8/27
 * @Description:com.homewoek
 * @Version:1.8.0_261
 */
public class MapTest {
    public static void main(String[] args) {
        HashMap<String,Integer> hm = new HashMap<String,Integer>();
        hm.put("法外狂徒",123);
        hm.put("张三",210);
        hm.put("李四",110);
        for (String s:hm.keySet()){
            System.out.println("name:" + s + ", grade:" + hm.get(s));
        }
    }
}
